﻿using System.Web;
using System.Web.Optimization;

namespace TbShop.Web
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate.min.js",
                        "~/Scripts/jquery.validate.unobtrusive.min.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/bundles/site").Include(
                      "~/Scripts/jquery-2.2.0.min.js",
                      "~/Scripts/jquery.slimscroll.min.js",
                      "~/Scripts/Site.js",
                      "~/Scripts/artDialog/dist/dialog-min.js",
                      "~/Scripts/noty/packaged/jquery.noty.packaged.min.js"
                      ));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css",
                      "~/Content/_all-skins.min.css",
                      "~/Content/AdminLTE.min.css",
                      "~/Content/font-awesome.min.css",
                      "~/Scripts/artDialog/css/ui-dialog.css",
                      "~/Content/ionicons.min.css",
                      "~/Scripts/webuploader/webuploader.css"));

            bundles.Add(new ScriptBundle("~/bundles/editable-table").Include(
              "~/Scripts/bootsrap-table/bootstrap-table.js",
              "~/Scripts/bootstrap-editable.js",
              "~/Scripts/bootsrap-table/tableExport/tableExport.min.js",
              "~/Scripts/bootsrap-table/extensions/editable/bootstrap-table-editable.js",
              "~/Scripts/bootsrap-table/locale/bootstrap-table-zh-CN.js",
              "~/Scripts/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js",
              "~/Scripts/select2/select2.js",
              "~/Scripts/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
              ));

            bundles.Add(new StyleBundle("~/bundles/editable-table-css").Include(
                     "~/Scripts/bootsrap-table/bootstrap-table.css",
                     "~/Scripts/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css",
                     "~/Content/bootstrap-editable/css/bootstrap-editable.css",
                     "~/Scripts/select2/select2.css",
                     "~/Scripts/select2/select2-bootstrap.css"
                     ));


            bundles.Add(new StyleBundle("~/Content/style").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/style.css",
                      "~/Content/_all-skins.min.css",
                      "~/Content/font-awesome.min.css",
                      "~/Scripts/artDialog/css/ui-dialog.css",
                      "~/Content/ionicons.min.css",
                      "~/Content/style2.css"));
        }
    }
}
